--- libpciaccess-0.13.2.org/src/linux_sysfs.c	2013-08-04 17:32:21.782000003 +0000
+++ libpciaccess-0.13.2/src/linux_sysfs.c	2013-08-04 17:32:56.498000003 +0000
@@ -44,6 +44,7 @@
 #include <sys/mman.h>
 #include <dirent.h>
 #include <errno.h>
+#include <limits.h>
 
 #if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
 #include <sys/io.h>
